package com.light.wanting.emoji.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.light.wanting.emoji.Collected;
import com.light.wanting.emoji.Content;
import com.light.wanting.emoji.Liked;
import com.light.wanting.emoji.vo.ContentVo;

/**
 * @author: 魏彪
 */
public interface ContentService extends IService<Content> {

    Content findById(Long id);

    ContentVo like(Long id);

    ContentVo collect(Long id);

    IPage<ContentVo> liked(IPage<Liked> page);

    IPage<ContentVo> collected(IPage<Collected> page);

    IPage<Content> findPage(Page<Content> page, Content content);
}
